//
//  YSUtility.h
//  Yaoyle
//
//  Created by ZhaoXudong on 14-9-10.
//  Copyright (c) 2014年 ZhaoXudong. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "YSType.h"

@interface YSUtility : NSObject

+ (BOOL)isBlankObject:(id)object;
+ (NSDictionary *)returnDictionary:(NSDictionary *)params;
+ (NSArray *)returnArray:(NSArray *)array;

+ (NSString *)getGameStatusText:(eRoomStatus)status;
+ (NSString *)getSocketInterface:(eSocketAciton)action;

+ (NSString *)encryptSocketDict:(NSDictionary *)dict;
//获取一个随机整数，范围在[from,to)
+ (NSInteger)getRandomNumber:(int)from to:(int)to;
// 播放小短音频
+ (void)playSound:(NSString *)soundName soundType:(NSString *)type;
// 是否为数字
+ (BOOL)validateNumber:(NSString*)number;

@end
